setLaunchBounds

open fun setLaunchBounds(@Nullable screenSpacePixelRect: Rect): ActivityOptionsCompat(source)

Sets the bounds (window size) that the activity should be launched in. Rect position should be provided in pixels and in screen coordinates. Set to null explicitly for fullscreen.

NOTE: This value is ignored on devices that don't have FEATURE_FREEFORM_WINDOW_MANAGEMENT or FEATURE_PICTURE_IN_PICTURE enabled.

Parameters

screenSpacePixelRect

Launch bounds to use for the activity or null for fullscreen.